package io.geekidea.springbootplus.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.springbootplus.system.entity.MerchantConfig;
import io.geekidea.springbootplus.system.param.MerchantConfigStatusParam;
import io.geekidea.springbootplus.system.vo.MerchantConfigQueryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Repository
public interface MerchantConfigMapper extends BaseMapper<MerchantConfig> {

   Integer updateStatus(@Param("param")MerchantConfigStatusParam merchantConfigStatusParam);

   List<MerchantConfigQueryVo> selectConfig();

   Integer insertConfig(MerchantConfigQueryVo merchantConfigQueryVo);

   Integer updateConfig( MerchantConfigQueryVo merchantConfigQueryVo);

   Integer  deleteConfig(@Param("id") int id);

   MerchantConfigQueryVo selectMerchantConfigById(@Param("id") Integer id);
}
